home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 17358 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.8 KB  |  60 lines

  1. Path: fred.net!news
  2. From: bitmask@bigdog.fred.net (Scott Allen)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: BC++5.0 Program doesn't compile (see text)
  5. Date: Mon, 15 Apr 1996 14:40:49 GMT
  6. Organization: FredNet - Frederick, Md.
  7. Message-ID: <317257a2.9543727@news.fred.net>
  8. References: <4k9e51$fl9@arl-news-svc-5.compuserve.com> <316AA13B.79CF@tdl.com> <craigaDpMLEB.yz@netcom.com> <316F262D.1F77@tdl.com>
  9. NNTP-Posting-Host: bitmask.fred.net
  10. X-Newsreader: Forte Agent .99d/32.168
  11.  
  12.  
  13. I can verify the problem Martin Moore describes does exist in
  14. Borland's 5.0 C++ compiler. I have seen it happen. 
  15.  
  16. I created a new project in 5.0 ( patch 1 applied ) and used the
  17. following source code :
  18.  
  19. #include <vector>
  20.  
  21. using namespace std;
  22.  
  23. int main()
  24. {
  25.    vector<long> test;
  26.  
  27.    return 1;
  28. }
  29.  
  30.  
  31. I set the project to target a WIn32 console application, 
  32. and everything compiles *perfectly*. 
  33.  
  34. I set the project to target a DOS( standard) 
  35. application (large or small model ) and *during the compile*
  36. I receive the following error :
  37.  
  38. Access violation occurred at 0xhhhhhhhh : Attempt to access
  39. 0xhhhhhhhh.
  40.  
  41. If I choose to be bull-headed at this point and simply tell BC++ 5.0
  42. to recompile, the "errors" statistic increments forever in the compile
  43. dialog. Repeatedly pounding on the Cancel button has no effect.
  44. It is time for a three finger salute.
  45.  
  46. The same problem exists when compiling and running programs 
  47. in \BC5\EXAMPLES\STDLIB. The examples will compile and
  48. execute as Console apps, but refuse to compile as DOS apps.
  49.  
  50. I know several have posted of having a successful compile, and I 
  51. was wondering what platform you had targeted? Has anyone been
  52. able to use the STL under DOS in BC++ 5.0?
  53.  
  54. Speaking of DOS, does anybody know if the 5.0 IDE will
  55. ever be upgraded to let a developer target a DPMI app 
  56. w/the Power Pack add-on?
  57. --
  58.        Scott Allen             
  59.   bitmask@bigdog.fred.net      
  60.